package datatypes.tv;

public class tvProgramCreator {

	private String name;
	private String id;
	private String programCreated;
	
	public tvProgramCreator(String name, String id,String programCreated){
		this.name = name;
		this.id = id;
		this.programCreated = programCreated;
	}
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String toString(){
		
		StringBuilder sb = new StringBuilder();
		
		if (id != null && id.length() > 0) {
			sb.append("creator id: " + id + "\n");
		}
		
		if (name != null && name.length() > 0) {
			sb.append("creator name: " + name + "\n");
		}
		
		if (programCreated != null && programCreated.length() > 0) {
			sb.append("programs created: " + programCreated + "\n");
		}
	 
		return sb.toString();
	}

	
}
